I'm having trouble taking MySQL calendar event data from Python and rendering it in fullCalendar. In Python I am using: return render_template('calendar_display.html',caldata=json.dumps(caldata)) to pass the data to fullCalendar. I then use JS: $(document).ready(function() { var data = jQuery.parseJSON('{{caldata | safe}}'); var events; events = []; events.push(data); $('#calendar').fullCalendar({ theme: true, eventLimit: true, events: events }); });
This renders the calendar but no events. I believe my problem is the JSON pass and decode piece but can't sort it out. No errors are shown during execution.
Any ideas, guidance, examples would be appreciated.
You must be logged in to post. Please login or register an account.